<?php /* Smarty version 2.6.16, created on 2013-09-10 10:48:35
         compiled from ../templates/default//modules/jobs/postajob.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'base64_encode', '../templates/default//modules/jobs/postajob.tpl', 223, false),array('modifier', 'stripslashes', '../templates/default//modules/jobs/postajob.tpl', 235, false),array('modifier', 'truncate', '../templates/default//modules/jobs/postajob.tpl', 235, false),array('modifier', 'strtolower', '../templates/default//modules/jobs/postajob.tpl', 256, false),array('modifier', 'ucfirst', '../templates/default//modules/jobs/postajob.tpl', 290, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['header_start'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<?php echo '<script src="';  echo $this->_tpl_vars['siteroot'];  echo '/includes/js/admin/ajax.js" type="text/javascript" ></script><script type="text/javascript" src="';  echo $this->_tpl_vars['siteroot'];  echo '/includes/js/jquery-1.4.2.min.js"></script><script type="text/javascript" src="';  echo $this->_tpl_vars['siteroot'];  echo '/includes/js/jquery.form.js"></script><script type="text/javascript" src="';  echo $this->_tpl_vars['siteroot'];  echo '/includes/js/jquery.validate.js"></script><script type="text/javascript" src="';  echo $this->_tpl_vars['siteroot'];  echo '/includes/js/bbq.js"></script><script type="text/javascript" src="';  echo $this->_tpl_vars['siteroot'];  echo '/includes/js/jquery-ui-1.8.5.custom.min.js"></script><script type="text/javascript" src="';  echo $this->_tpl_vars['siteroot'];  echo '/includes/js/jquery.form.wizard.js"></script>'; ?>

<?php echo '

<script type="text/javascript">
function windowfunction(pageURL)
{
	window.location.href =pageURL;	
}
function newfunction()
{
	alert("You can\'t post job!");
	return false;	
}
</script>

'; ?>


<?php echo '
<script type="text/javascript">

function showJobType(jid)
{
	if(jid!=\'\')
	{
		ajax.sendrequest("GET",SITEROOT + "/modules/register/show_jobtype.php",{jobidid:jid},"","isJobType");
	}
	else
		document.getElementById(\'jobtype\').value=\'\';
}

</script>
'; ?>


<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['header_end'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>


<section class="banner_portion">
	<section class="banner_middle">
   	<section class="banner_left">
       
        <div id="demoWrapper">
			<h5 id="status"></h5>
			<form id="demoForm" name="demoForm" method="post" class="bbq">
            <input type="hidden" name="usertype" id="usertype" value="<?php echo $_SESSION['user_type']; ?>
" />
 				<div id="fieldWrapper">
				<span class="step" id="first" style="display:block">
                
                <section>
         	<section class="banner_subhead">PLEASE TELL US A BIT MORE ABOUT YOUR JOB...</section>
                <section class="banner_descrip">to help us find the right service provider for you.</section>
	            </section>
				<section >
                    <section>
                    <section class="banner_whattype_hd">Confirm the service you need!</section>
                    <section>
                    	<div>
                    	<select name="trade" id="trade" class="banner_inputbx trade" onchange="showJobType(this.value);">
	                    <option value="">- Select -</option>
                        <?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['newtradecategoryArray']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
                        	<option value="<?php echo $this->_tpl_vars['newtradecategoryArray'][$this->_sections['i']['index']]['id']; ?>
" <?php if ($this->_tpl_vars['newtradecategoryArray'][$this->_sections['i']['index']]['id'] == $this->_tpl_vars['tradecatid']): ?> selected="selected" <?php endif; ?>><?php echo $this->_tpl_vars['newtradecategoryArray'][$this->_sections['i']['index']]['trade_category']; ?>
</option>
                        <?php endfor; endif; ?> 
    	                </select>
                    	</div>    
                    </section>
                    </section>
                    
                    <section>
                    <section class="banner_whattype_hd">Select best match from the list below: </section>
                    <section>
	                    <div id="isJobType">
                    	<select name="jobtype" id="jobtype" class="banner_inputbx jobtype">
                    	<option value="">- Select -</option>
	                    <?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['new_tradejobtypeArray']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
                        	<option value="<?php echo $this->_tpl_vars['new_tradejobtypeArray'][$this->_sections['i']['index']]['id']; ?>
"><?php echo $this->_tpl_vars['new_tradejobtypeArray'][$this->_sections['i']['index']]['trade_category']; ?>
</option>
                        <?php endfor; endif; ?> 
	                    </select>
                        </div>
                      </section>
                    </section>
                    <section>
                    <section class="banner_whattype_hd">Full description of the quote</section>
                    <section><textarea name="describe_job" cols="" rows="" class="banner_textarea describe_job minlength" style="overflow: auto;resize:none;"></textarea></section>
                    </section>
                    </section>

				</span>
				<span id="finland" class="step" style="display:block">
					
                    <section>                    	
                        <section class="banner_subhead martp_tp">Please tell us a bit more about your job...</section>
                        <section class="banner_descrip">to help us find the right service provider for you</section>
                    </section>
					<section>
                    <section>
                        <section class="banner_whattype_hd">When do you want the work to start?</section>
                        <section>
                        	<select name="work_to_start" id="work_to_start" class="banner_inputbx work_to_start" style="padding:9px 10px !important" >
                        	<option value="">- Select -</option>
                            <option value="asap">As soon as possible</option>
                            <option value="1 week">1 week</option>
                            <option value="2 weeks">2 weeks</option>
                            <option value="1 month">1 month +</option>
                        	</select>
                      </section>
                    </section>
                    <section>
                    <section class="banner_whattype_hd">What is your approximate budget? </section>
                        <section>
                        	<select name="approx_budget" id="approx_budget" class="banner_inputbx approx_budget" style="padding:9px 10px !important"  >
                            <option value="">-- Select an approx. budget --</option>
                            <?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['getallactivebudgetArray']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
	                            <option value="<?php echo $this->_tpl_vars['getallactivebudgetArray'][$this->_sections['i']['index']]['budget_id']; ?>
">Under $<?php echo $this->_tpl_vars['getallactivebudgetArray'][$this->_sections['i']['index']]['budget_name']; ?>
</option>
                            <?php endfor; endif; ?>                              
	                        </select>
                     </section>
                    </section>
                    <section>
                    <section class="banner_whattype_hd">What is the postcode for the job?</section>
                        <section><input type="text" class="demostep2 postalcode remote" name="postcode" id="postcode" value="<?php echo $_POST['postcode']; ?>
" maxlength="15"  /></section>
                        </section>
                    </section>
                     <section>
                        <section class="banner_whattype_hd">What is your email address?  </section><?php echo $_SESSION['emailaddress']; ?>

                        <section><input type="text" class="demostep2 email required" name="emailaddress" id="emailaddress" <?php if ($_SESSION['email'] != ''): ?> value="<?php echo $_SESSION['email']; ?>
" readonly="readonly" <?php else: ?> value="<?php echo $_POST['emailaddress']; ?>
" <?php endif; ?> /></section>
                    </section> 						
				</span>
				<span id="confirmation" class="step" style="display:block">
					
					 <section>                    	
                        <section class="banner_subhead martp_tp">Contact details</section>
                        
                    </section>
					<section>
                    <section>
                        <section class="banner_whattype_hd">First Name</section>
                        <section><input type="text" class="demostep2 fname" name="fname" id="fname" <?php if ($_SESSION['first_name'] != ''): ?> value="<?php echo $_SESSION['first_name']; ?>
" <?php else: ?> value="<?php echo $_POST['fname']; ?>
" <?php endif; ?> maxlength="20"  /></section>
                    </section>
                    <section>
                    <section class="banner_whattype_hd">Last Name</section>
                        <section><input type="text" class="demostep2 lname" name="lname" id="lname" <?php if ($_SESSION['last_name'] != ''): ?> value="<?php echo $_SESSION['last_name']; ?>
" <?php else: ?> value="<?php echo $_POST['lname']; ?>
" <?php endif; ?> maxlength="20"  /></section>
                    </section>
                    <section>
                    <section class="banner_whattype_hd">Mobile Number</section>
                        <section><input type="text" class="demostep2 mobno" name="mobno" id="mobno" <?php if ($this->_tpl_vars['userdetail']['phone_number'] != ''): ?> value="<?php echo $this->_tpl_vars['userdetail']['phone_number']; ?>
" <?php else: ?> value="<?php echo $_POST['mobno']; ?>
" <?php endif; ?> maxlength="15"  /></section>
                        </section>
                    </section>
                     <section>
                        <section class="banner_whattype_hd">&nbsp; </section>
                        <section><input type="checkbox" class="terms" name="terms" id="terms" value="<?php echo $_POST['terms']; ?>
" />    I have read and agree to the Get-Bids.com.au <a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/terms-conditions/" style="color:##19A3DA" target="_blank">Terms and Conditions</a> and <a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/privacypolicy/" target="_blank" style="color:##19A3DA">Privacy Policy</a> .</section>
                    </section> 	
                    <label for="terms" generated="true" class="error"></label>	
				</span>
				</div>
                
				<div id="demoNavigation"> 							
				
                     <section class="banr_nextstep_btn lF"><input type="reset" id="back" value="Back" class="banr_bluebtn"></section>
                    <section class="banr_nextstep_btn"><input <?php if ($_SESSION['user_type'] != '4'): ?>type="submit" <?php else: ?> type="button" onclick="return newfunction();" <?php endif; ?> id="next" value="NEXT STEP"  class="banr_bluebtn" style="width:150px; "></section>
				</div>
			</form>
		
			
			<p id="data"></p>
		</div>
        
        <section class="clear"></section>
        </section>
        
        <section class="banner_right"><embed
width="490" height="345"
src="http://www.youtube.com/v/1VzWPDDMwNc"
type="application/x-shockwave-flash">
</embed><br><br>The smartest, most cost-effective way to find customers. Our revolutionary matching<br>technology can connect you right to the customers you're looking for, when you want them.</section>
        <section class="clear"></section>
    </section>
</section>

<!-- MIDDLE CONTAIN GOES HERE -->
<section class="middle_portion">
	<section class="howitworks">
    	<section class="howworks_head">How It Works</section>
        <section class="howworks_blueimg">
        	<section class="howworks_postjob">
            	<section class="howworks_subhead">POST YOUR JOB</section>
                <section class="howworks_descrip">Describe what need <br>to be done.</section>
            </section>
            <section class="howworks_getquote">
            	<section class="howworks_subhead">GET QUOTES</section>
                <section class="howworks_descrip">Providers reply <br> quickly online.</section>
            </section>
            <section class="howworks_checkfdbk">
            	<section class="howworks_subhead">CHECK FEEDBACK</section>
                <section class="howworks_descrip">Use previous rating  to help you choose.</section>
            </section>
            <section class="howworks_tradesman">
            	<section class="howworks_subhead">GET PROVIDER</section>
                <section class="howworks_descrip">Have your job done and rate them.</section>
            </section>
            <section class="clear"></section>
  
        </section>

    </section>
 

    <section>
    	<section class="featuredjobs">
        	<section class="featredjobs_head">Latest News</section>
            <section>
            <?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['jobArray']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
       	    <section class="featredjobs_dottedline">
                	<section class="featredjob_leftimg">
                    <a <?php if ($_SESSION['getbids_id'] != ''): ?> <?php if ($_SESSION['user_type'] == '3'): ?> href="<?php echo $this->_tpl_vars['siteroot']; ?>
/jobs/<?php echo ((is_array($_tmp=$this->_tpl_vars['jobArray'][$this->_sections['i']['index']]['postjob_id'])) ? $this->_run_mod_handler('base64_encode', true, $_tmp) : smarty_modifier_base64_encode($_tmp)); ?>
/viewjob/" <?php else: ?> href="<?php echo $this->_tpl_vars['siteroot']; ?>
/jobs/<?php echo ((is_array($_tmp=$this->_tpl_vars['jobArray'][$this->_sections['i']['index']]['postjob_id'])) ? $this->_run_mod_handler('base64_encode', true, $_tmp) : smarty_modifier_base64_encode($_tmp)); ?>
/findjobdetail/" <?php endif; ?> <?php else: ?> href="<?php echo $this->_tpl_vars['siteroot']; ?>
/signin/" <?php endif; ?>>
                  	<?php if ($this->_tpl_vars['jobArray'][$this->_sections['i']['index']]['image']): ?>
                        <section class="com_logo_img_wrapp">
                        <img src="<?php echo $this->_tpl_vars['siteroot']; ?>
/includes/image.php?width=93&amp;height=93&amp;image=<?php echo $this->_tpl_vars['siteroot']; ?>
/uploads/job/<?php echo $this->_tpl_vars['jobArray'][$this->_sections['i']['index']]['image']; ?>
" title="job logo" alt="job logo"/>
                        </section>
                    <?php else: ?>	
                    <section class="com_logo_img_wrapp">
                        <img src="<?php echo $this->_tpl_vars['siteroot']; ?>
/uploads/job/featredjob_img1.jpg" height="93px" width="93px"  />
                        </section>
                    <?php endif; ?>
                    </a></section>
                  <section class="featredjob_rt_contain">                    	
                      <section class="featredjobs_descrip"><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['jobArray'][$this->_sections['i']['index']]['job_desc'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : stripslashes($_tmp)))) ? $this->_run_mod_handler('truncate', true, $_tmp, 40, "...") : smarty_modifier_truncate($_tmp, 40, "...")); ?>
</section>
                        <section class="featredjobs_more"><a <?php if ($_SESSION['getbids_id'] != ''): ?> <?php if ($_SESSION['user_type'] == '3'): ?> href="<?php echo $this->_tpl_vars['siteroot']; ?>
/jobs/<?php echo ((is_array($_tmp=$this->_tpl_vars['jobArray'][$this->_sections['i']['index']]['postjob_id'])) ? $this->_run_mod_handler('base64_encode', true, $_tmp) : smarty_modifier_base64_encode($_tmp)); ?>
/viewjob/" <?php else: ?> href="<?php echo $this->_tpl_vars['siteroot']; ?>
/jobs/<?php echo ((is_array($_tmp=$this->_tpl_vars['jobArray'][$this->_sections['i']['index']]['postjob_id'])) ? $this->_run_mod_handler('base64_encode', true, $_tmp) : smarty_modifier_base64_encode($_tmp)); ?>
/findjobdetail/" <?php endif; ?> <?php else: ?> href="<?php echo $this->_tpl_vars['siteroot']; ?>
/signin/" <?php endif; ?>>read more »</a></section>
                  </section>
                    <section class="clear"></section>
                </section>
            <?php endfor; endif; ?>    
            </section>
        </section>
        <section class="featured_tradesmen">
        	<section class="featredtrade_head">Featured Tradesmen</section>
            <section>
            <?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['AllReviewUser']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
            <section class="featredjobs_dottedline">
                	<section class="featredjob_leftimg"><a href="javascript:;">
                    <?php if ($this->_tpl_vars['AllReviewUser'][$this->_sections['i']['index']]['user_avatar']): ?>
                        <img src="<?php echo $this->_tpl_vars['siteroot']; ?>
/includes/image.php?width=93&amp;height=93&amp;image=<?php echo $this->_tpl_vars['siteroot']; ?>
/uploads/user/<?php echo $this->_tpl_vars['AllReviewUser'][$this->_sections['i']['index']]['user_avatar']; ?>
" title="User Name" alt="User Name"/>
                    <?php else: ?>
                        <img src="<?php echo $this->_tpl_vars['siteroot']; ?>
/templates/default/images/upload/featredtrade_img3.jpg" width="93" height="93" title="User Name" alt="User Name" />   
                    <?php endif; ?> 
                    </a></section>
                  <section class="featredjob_rt_contain">
                   	<section class="featredtrade_subhead"><a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/findtradesman/<?php echo ((is_array($_tmp=$this->_tpl_vars['AllReviewUser'][$this->_sections['i']['index']]['compname'])) ? $this->_run_mod_handler('strtolower', true, $_tmp) : strtolower($_tmp)); ?>
" ><?php echo $this->_tpl_vars['AllReviewUser'][$this->_sections['i']['index']]['first_name']; ?>
 <?php echo $this->_tpl_vars['AllReviewUser'][$this->_sections['i']['index']]['last_name']; ?>
 </a><span><?php echo ((is_array($_tmp=$this->_tpl_vars['AllReviewUser'][$this->_sections['i']['index']]['trade_name'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 15, "") : smarty_modifier_truncate($_tmp, 15, "")); ?>
</span></section>
                    <section class="featredtrade_location_hd">Location : <span><?php echo ((is_array($_tmp=$this->_tpl_vars['AllReviewUser'][$this->_sections['i']['index']]['location'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 15, "...") : smarty_modifier_truncate($_tmp, 15, "...")); ?>
</span></section>
                        <section>
                       	  <section class="featredtrade_rating">Rating : </section>
                          
                            <section class="featredtrade_rating_img">
                            	<!--<a href="javascript:;"><img src="<?php echo $this->_tpl_vars['siteroot']; ?>
/templates/default/images/star5.png"></a>-->
                                <?php unset($this->_sections['j']);
$this->_sections['j']['name'] = 'j';
$this->_sections['j']['loop'] = is_array($_loop=$this->_tpl_vars['AllReviewUser'][$this->_sections['i']['index']]['total_rating']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['j']['start'] = (int)0;
$this->_sections['j']['max'] = (int)$this->_tpl_vars['AllReviewUser'][$this->_sections['i']['index']]['total_rating'];
$this->_sections['j']['show'] = true;
if ($this->_sections['j']['max'] < 0)
    $this->_sections['j']['max'] = $this->_sections['j']['loop'];
$this->_sections['j']['step'] = 1;
if ($this->_sections['j']['start'] < 0)
    $this->_sections['j']['start'] = max($this->_sections['j']['step'] > 0 ? 0 : -1, $this->_sections['j']['loop'] + $this->_sections['j']['start']);
else
    $this->_sections['j']['start'] = min($this->_sections['j']['start'], $this->_sections['j']['step'] > 0 ? $this->_sections['j']['loop'] : $this->_sections['j']['loop']-1);
if ($this->_sections['j']['show']) {
    $this->_sections['j']['total'] = min(ceil(($this->_sections['j']['step'] > 0 ? $this->_sections['j']['loop'] - $this->_sections['j']['start'] : $this->_sections['j']['start']+1)/abs($this->_sections['j']['step'])), $this->_sections['j']['max']);
    if ($this->_sections['j']['total'] == 0)
        $this->_sections['j']['show'] = false;
} else
    $this->_sections['j']['total'] = 0;
if ($this->_sections['j']['show']):

            for ($this->_sections['j']['index'] = $this->_sections['j']['start'], $this->_sections['j']['iteration'] = 1;
                 $this->_sections['j']['iteration'] <= $this->_sections['j']['total'];
                 $this->_sections['j']['index'] += $this->_sections['j']['step'], $this->_sections['j']['iteration']++):
$this->_sections['j']['rownum'] = $this->_sections['j']['iteration'];
$this->_sections['j']['index_prev'] = $this->_sections['j']['index'] - $this->_sections['j']['step'];
$this->_sections['j']['index_next'] = $this->_sections['j']['index'] + $this->_sections['j']['step'];
$this->_sections['j']['first']      = ($this->_sections['j']['iteration'] == 1);
$this->_sections['j']['last']       = ($this->_sections['j']['iteration'] == $this->_sections['j']['total']);
?>
                                    <span class=""><img src="<?php echo $this->_tpl_vars['siteroot']; ?>
/templates/default/images/y_star.png" alt=""  class=""/></span>
                                <?php endfor; endif; ?>
                                
                                <?php unset($this->_sections['k']);
$this->_sections['k']['name'] = 'k';
$this->_sections['k']['loop'] = is_array($_loop=$this->_tpl_vars['AllReviewUser'][$this->_sections['i']['index']]['remaining_rating']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['k']['start'] = (int)0;
$this->_sections['k']['max'] = (int)$this->_tpl_vars['AllReviewUser'][$this->_sections['i']['index']]['remaining_rating'];
$this->_sections['k']['show'] = true;
if ($this->_sections['k']['max'] < 0)
    $this->_sections['k']['max'] = $this->_sections['k']['loop'];
$this->_sections['k']['step'] = 1;
if ($this->_sections['k']['start'] < 0)
    $this->_sections['k']['start'] = max($this->_sections['k']['step'] > 0 ? 0 : -1, $this->_sections['k']['loop'] + $this->_sections['k']['start']);
else
    $this->_sections['k']['start'] = min($this->_sections['k']['start'], $this->_sections['k']['step'] > 0 ? $this->_sections['k']['loop'] : $this->_sections['k']['loop']-1);
if ($this->_sections['k']['show']) {
    $this->_sections['k']['total'] = min(ceil(($this->_sections['k']['step'] > 0 ? $this->_sections['k']['loop'] - $this->_sections['k']['start'] : $this->_sections['k']['start']+1)/abs($this->_sections['k']['step'])), $this->_sections['k']['max']);
    if ($this->_sections['k']['total'] == 0)
        $this->_sections['k']['show'] = false;
} else
    $this->_sections['k']['total'] = 0;
if ($this->_sections['k']['show']):

            for ($this->_sections['k']['index'] = $this->_sections['k']['start'], $this->_sections['k']['iteration'] = 1;
                 $this->_sections['k']['iteration'] <= $this->_sections['k']['total'];
                 $this->_sections['k']['index'] += $this->_sections['k']['step'], $this->_sections['k']['iteration']++):
$this->_sections['k']['rownum'] = $this->_sections['k']['iteration'];
$this->_sections['k']['index_prev'] = $this->_sections['k']['index'] - $this->_sections['k']['step'];
$this->_sections['k']['index_next'] = $this->_sections['k']['index'] + $this->_sections['k']['step'];
$this->_sections['k']['first']      = ($this->_sections['k']['iteration'] == 1);
$this->_sections['k']['last']       = ($this->_sections['k']['iteration'] == $this->_sections['k']['total']);
?>
                                    <span class="star_1"><img src="<?php echo $this->_tpl_vars['siteroot']; ?>
/templates/default/images/g_star.png" alt=""  class=""/></span>
                                <?php endfor; endif; ?>
                                
                            </section>
                            <section class="clear"></section>
                        </section>
                    <!-- <section class="featredtrade_location_hd">Contact : <span><?php echo $this->_tpl_vars['AllReviewUser'][$this->_sections['i']['index']]['phone_number']; ?>
</span></section>
                       <section class="featredjobs_more"><a href="javascript:;">read more »</a></section>-->
                  </section>
                    <section class="clear"></section>
                </section>
            <?php endfor; endif; ?>    
                
                
            </section>
        </section>
        <section class="testimonials">
        	<section class="featredjobs_head">Testimonials</section>
            <section>
            	<section>
                	<section class="testimonial_blueimg"><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['gettestimonialArray']['description'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : stripslashes($_tmp)))) ? $this->_run_mod_handler('truncate', true, $_tmp, 150, "..") : smarty_modifier_truncate($_tmp, 150, "..")); ?>
</section>
                    <section>
                    	<section class="testimonial_name">- <?php echo ((is_array($_tmp=$this->_tpl_vars['gettestimonialArray']['username'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
 </section>
                        <?php if ($this->_tpl_vars['counttestimonialArray'] > 1): ?>
                        <section class="testimonial_more"><a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/testimonials/">read all »</a></section>
                        <?php endif; ?>
                    </section>
                </section>
                <br>
                <section class="testimonial_dottedline"></section>
                 <?php if ($_SESSION['getbids_id'] == ''): ?>	

                <?php endif; ?>
            </section>
            	
        </section>
        <section class="clear"></section>
    </section>
<img src="<?php echo $this->_tpl_vars['siteroot']; ?>
/templates/default/images/partner-logo-wide-banner.png" />
</section>

<?php echo '
<script type="text/javascript">
$(function(){
	$("#demoForm").formwizard({ 
		formPluginEnabled: true,
		validationEnabled: true,
		focusFirstInput : true,
		formOptions :{
			success: function(data){$("#status").animate(500,1,function(){ $(this).html("You are now registered!").animate(5000, 0); })},
			beforeSubmit: function(data){
				
				$.ajax({
					  url: SITEROOT+"/homeownerregistration.php",
					  type: "GET",
					  data: $.param(data),
					  success: function(responce_msg){
						  window.location.href= SITEROOT+"/register/registersuccess/";
						//$("#outerwrapper").html(responce_msg);		
					  }
				   })
				
				
				//alert($.param(data));
				/*var arrayDivMain =  $.param(data).split("&");
				var lenCount = arrayDivMain.length - 1;
				alert(arrayDivMain);
				
				var temp = arrayDivMain.split(",");
				alert(temp);*/
				
				//$("#data").html("data sent to the server: " + $.param(data));
			},
			dataType: \'json\',
			resetForm: true
		}	
	 }
	);
});
</script>
'; ?>


<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['footer'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>